<template>
  <div>
    <div @click="fn">
      <form action="http://www.itcast.cn">
        <input type="text" />

        <button @click.prevent.stop="fn2">提交</button>
      </form>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },

  methods: {
    fn() {
      console.log(1)
    },
    fn2(e) {
      console.log(e)
    }
  }
}
</script>

<style scoped></style>
